

using System;
using System.Data;
using System.IO;
using System.Linq;
using System.Linq.Dynamic;
using System.Linq.Expressions;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Abp.Linq;
using Abp.Linq.Extensions;
using Abp.Extensions;
using Abp.UI;
using Abp.Domain.Repositories;
using Abp.Domain.Services;

using Yozeev;
using Yozeev.SystemConfig.BasicConfig;


namespace Yozeev.SystemConfig.BasicConfig.DomainService
{
    /// <summary>
    /// DateDictionary领域层的业务管理
    ///</summary>
    public class DateDictionaryManager :YozeevDomainServiceBase, IDateDictionaryManager
    {
		
		private readonly IRepository<DateDictionary,Guid> _repository;

		/// <summary>
		/// DateDictionary的构造方法
		///</summary>
		public DateDictionaryManager(
			IRepository<DateDictionary, Guid> repository
		)
		{
			_repository =  repository;
		}


		/// <summary>
		/// 初始化
		///</summary>
		public void InitDateDictionary()
		{
			throw new NotImplementedException();
		}

		// TODO:编写领域业务代码


		/// <summary>
		/// 获取打印样式绑定值列表
		/// </summary>
		/// <param name="TicketBinding">字典中的代码</param>
		/// <returns></returns>
		public async Task<List<DateDictionary>> GetTicketBinding(string TicketBinding = "TicketBinding")
        {
            var list = await _repository.GetAllListAsync(m => m.Parent.DictionaryCode == TicketBinding);
            return list.ToList();
        }





    }
}
